package entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("message")
@AllArgsConstructor
@NoArgsConstructor
public class Message {
    private Integer id;
    private Long sessionId;
    private Integer senderId;   ///发送者id
    private Integer receiverId; //接收者id
    private Date sendTime;  //发送时间
    private String content;  //发送内容
    private String messageType;  //消息类型
    private Integer isWithdrawn;  //是否撤回
    public Date createTime;  //创建时间
    public Integer delFlag;    //逻辑删除标志
    public Date updateTime;  //更新时间
    private Boolean ifSee;
}
